package svc

import (
	"zerorpc/app/worker/internal/config"
	"zerorpc/pkg/mqttx"
)

type ServiceContext struct {
	Config     config.Config
	MqttClient *mqttx.MqttClient
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:     c,
		MqttClient: mqttx.NewClient(c.MqttConf),
	}
}
